package com.sumer.psychology.microblog.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;
import com.sumer.psychology.common.domain.model.Author;

/**
 * User: zhenguang.zhu
 * Date: 2014/9/2
 * Time: 9:57
 */
public class MicroBlogCreatedEvent extends AbstractDomainEvent {
    private MicroBlogId microBlogId;
    private String content;
    private Author author;

    public MicroBlogCreatedEvent(MicroBlogId microBlogId, String content, Author author) {
        super();
        this.microBlogId = microBlogId;
        this.content = content;
        this.author = authorFrom(author);
    }

    public MicroBlogId microBlogId() {
        return microBlogId;
    }

    public String content() {
        return content;
    }

    public Author author() {
        return author;
    }
}
